package com.dk.controller;


import com.dk.model.Client;
import com.dk.service.ClientService;
import com.dk.vo.ClientVO;
import com.dongdongshop.data.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  客户表
 * </p>
 *
 * @author wbh
 * @since 2023-03-17
 */
@RestController
@RequestMapping("client")
public class ClientController {
    @Autowired
    private ClientService clientService;

    @GetMapping("getAll")
    public Result getAll(){
        List<ClientVO> clientVOList = clientService.getAll();
        return Result.OK().setData(clientVOList);
    }

}

